package com.zhiyou100.review.day021.file;

import java.io.IOException;
import java.io.InputStream;
import java.net.ServerSocket;
import java.net.Socket;

/**
 * @packageName: MySocketServer
 * @className: com.zhiyou100.review.day021.file
 * @Description: TODO 服务器端口
 * @author: yang
 * @date: 7/2/20
 */
public class MySocketServer {
    /**
     * 接受目录
     */
    private static final String PATH ="/Users/yang/Downloads/test/accept";

    public static void main(String[] args) throws IOException {
        ServerSocket serverSocket = new ServerSocket(10086);
        // 创建 服务器

        Socket socket = serverSocket.accept();
        // 创建 socket

        InputStream inputStream = socket.getInputStream();
        // 通过 socket 获取客户端的输入

    }
}
